<?

require("config.php");

$query = "select firstname, lastname, password from cus_basic where email = '$Email' ";

$r = myQuery($query);

if (!$r) {

	$status = "Invaild email.";

}else{

	$Password = $r[0][3];

	$status = "Your password has been sent.";

	$from_name = "se";
	$from_email = "se@se.com";

	$to_name = $r[0][0] . " " . $r[0][1];

	$to_email = $Email;

	$subject = "your password:";

	$content = $Password;

	sendmail($from_name,$from_email,$to_name,$to_email,$subject,$content);

}

require($rela_path . "header.php");
?>










<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <!--<td width="17"><img src="<?=$rela_path?>images/shim.gif" width="17" height="1"></td>-->
    <td width="186" valign="top"> 
      <?require("../nav.php")?>
    </td>
    <td width="11"><img src="<?=$rela_path?>images/shim.gif" width="11" height="1"></td>
    <td valign="top"> 
      <?require("../menu.php")?>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td align="right"><table width="100%" border="0">
              <tr> 
                <td height="50" class="header">&gt;&gt; Retrieve you password</td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="13"><img src="../images/c1.gif" width="13" height="37"></td>
                <td background="../images/c5.gif" class="boxTitle">Password has 
                  been sent</td>
                <td width="13"><img src="../images/c2.gif" width="13" height="37"></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="2" bgcolor="B1CAE8"><img src="../images/shim.gif" width="2" height="1"></td>
                <td align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td bgcolor="F78D83"><img src="../images/shim.gif" width="1" height="2"></td>
                    </tr>
                  </table>
                  <table width="96%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><p>&nbsp;</p>
                        <p>An e-mail has been sent to 
                          <?=$Username?>
                          at 
                          <?=$Email?>
                          with your password.</p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p></td>
                    </tr>
                  </table></td>
                <td width="2" bgcolor="B1CAE8"><img src="../images/shim.gif" width="2" height="1"></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="6"><img src="../images/c3.gif" width="6" height="6"></td>
                <td background="../images/c7.gif"><img src="../images/c7.gif" width="6" height="6"></td>
                <td width="6"><img src="../images/c4.gif" width="6" height="6"></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <br>
      <br> </td>
    <td width="11"><img src="<?=$rela_path?>images/shim.gif" width="11" height="1"></td>
    <td width="173" valign="top">
	
	
<?require("../list.php")?>	 
	  
	  
    </td>
    <!--<td width="17"><img src="<?=$rela_path?>images/shim.gif" width="17" height="1"></td>-->
  </tr>
</table>





<?require("../footer.php")?>	